<?php

namespace App\Models\Wanggui;

use App\Models\BaseModel;
use App\Models\Common\MapNationalIndustrialParkModel;
use App\Models\Common\MapNationalStreetModel;
use App\Models\Common\MapNationalUniversitiesModel;
use App\Models\Common\MapTownshipPlanAreaModel;
use App\Models\Kms\User\KmsUser;
use App\Models\OpenShop\Common\SiteLocationMallModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\HasOne;

class CustomerDepartmentDevelopmentManagerModel extends BaseModel
{
    use HasFactory;

    protected $table = 'customer_department_development_manager';

    protected $fillable = [
        'rmsUserId',
        'name',
        'phone',
        'taskCount',
        'sTaskCount',
        'aTaskCount',
        'saTaskCount',
        'bTaskCount',
        'cTaskCount',
        'sTaskRatio',
        'aTaskRatio',
        'saTaskRatio',
        'bTaskRatio',
        'cTaskRatio',
        'effectiveClueCount',
        'effectiveHouseCount',
        'siteLocationCount',
        'onTheJobTime',
        'followUpTime',
        'isResigned',
        'taskDistrict',
        'taskCity',
        'createdAt',
        'createdByUid',
        'updatedAt',
        'updatedByUid',
    ];


    /**
     * 离职状态
     */
    const IS_RESIGNED_ON  = 1;
    const IS_RESIGNED_OFF = 0;
    const IS_RESIGNED_MAPPING = [
        self::IS_RESIGNED_OFF => '在职',
        self::IS_RESIGNED_ON  => '离职',
    ];

}
